import request from "/@/utils/request"

/**
 * 获取领料单
 * @param data
 */
export function getPickApplys(data?: any) {
    return request({
        url: '/wms/pickApply/GetPickApplys',
        method: 'post',
        data: data
    })
}
/**
 * 更新领料单
 * @param data
 */
export function updatePickApply(data?: any) {
    return request({
        url: '/wms/pickApply/UpdatePickApply',
        method: 'post',
        data: data
    })
}
/**
 * 导出条码excel
 * @param data
 */
export function exportPickApplyBarcodes(data?: any) {
    return request({
        url: '/wms/pickApply/ExportPickApplyBarcodes',
        method: 'post',
        data: data
    })
}
/**
 * 获取花色
 * @param data
 */
export function getDesignColor(data?: any) {
    return request({
        url: '/wms/pickApply/GetDesignColor',
        method: 'post',
        data: data
    })
}
/**
 * 插入领料单
 * @param data
 */
export function insertPickApply(data?: any) {
    return request({
        url: '/wms/pickApply/InsertPickApply',
        method: 'post',
        data: data
    })
}
/**
 * 获取领料单明细
 * @param data
 */
export function getApplyDetails(data?: any) {
    return request({
        url: '/wms/pickApply/GetApplyDetails',
        method: 'post',
        data: data
    })
}

/**
 * 获取物料条码
 * @param data
 */
export function getApplyBarcodes(data?: any) {
    return request({
        url: '/wms/pickApply/GetApplyBarcodes',
        method: 'post',
        data: data
    })
}

/**
 * 修改申请数量
 * @param data
 */
export function UpdateDetailApplyQty(data?: any) {
    return request({
        url: '/wms/pickApply/UpdateDetailApplyQty',
        method: 'post',
        data: data
    })
}
